package cn.llk.mall.service.impl;

import cn.llk.mall.entity.GoodsOrderEntity;
import cn.llk.mall.dao.GoodsOrderDao;
import cn.llk.mall.service.GoodsOrderService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author llk
 * @since 2021-04-20
 */
@Service
public class GoodsOrderServiceImpl extends ServiceImpl<GoodsOrderDao, GoodsOrderEntity> implements GoodsOrderService {

    @Override
    public List<GoodsOrderEntity> listByUserId(String id) {
        return list(new QueryWrapper<GoodsOrderEntity>().eq("user_id", id));
    }
}
